package com.yunhai.model.entity.ums;

import com.baomidou.mybatisplus.annotation.*;
import com.yunhai.model.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import java.time.LocalDateTime;

@ApiModel(value = "UmsRolePermission", description = "角色权限关联实体")
@TableName("ums_role_permission")
@Data
@Accessors(chain = true)
public class UmsRolePermission extends BaseEntity {


    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    // 复合主键字段（需特殊处理）
    @ApiModelProperty(value = "角色ID", required = true, example = "10001")
    private Long roleId;

    @ApiModelProperty(value = "菜单ID", required = true, example = "20001")
    private Long menuId;

}